package com.hopu.service.impl;

import com.hopu.domain.ContractC;
import com.hopu.domain.ContractCExample;
import com.hopu.mapper.ContractCMapper;
import com.hopu.service.ContractCService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ContractCServiceImpl implements ContractCService {

    @Autowired
    ContractCMapper contractCMapper;
    @Override
    public List<ContractC> selectByExample() {
        ContractCExample contractCExample = new ContractCExample();
        return contractCMapper.selectByExample(contractCExample);
    }

    @Override
    public ContractC selectByPrimaryKey(String contractId) {
        return contractCMapper.selectByPrimaryKey(contractId);
    }

    @Override
    public int deleteByPrimaryKey(String contractId) {
        return contractCMapper.deleteByPrimaryKey(contractId);
    }

    @Override
    public int insertSelective(ContractC record) {
        return contractCMapper.insert(record);
    }

    @Override
    public int updateByPrimaryKey(ContractC record) {
        return contractCMapper.updateByPrimaryKey(record);
    }

    @Override
    public void state(Map<String, Object> map) {
        contractCMapper.state(map);
    }

    @Override
    public List<ContractC> selectBystate(Integer state) {
        return contractCMapper.selectBystate(state);
    }


}
